package com.example.weather.model;


public class Constants {

    public static String WEATHER = "weather";

    public static String BASE_URL = "https://api.caiyunapp.com/";

    public static String TOKEN = "VB5dNwOGAhYRX6Ra";

    public static String SEARCH_PLACE = BASE_URL + "v2/place?token=" + TOKEN + "&lang=zh_CN";

    public static String getRealtimeWeather(PlaceResponse.Location location) {
        return BASE_URL + "v2.5/" + TOKEN + "/" + location.getLng() + "," + location.getLat() + "/realtime.json";
    }

    public static String getDailyWeather(PlaceResponse.Location location) {
        return BASE_URL + "v2.5/" + TOKEN + "/" + location.getLng() + "," + location.getLat() + "/daily.json";
    }

}